package com.example.day1901;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author Lenovo
 */
public class PrintWriterDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(new FileWriter("myOtherStream\\pw.txt"), true);
        pw.println("hello");
        pw.println("world");

        pw.close();
    }
}
